home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1993 April: Penguin on DISC / ADC Developer CD (1993-04) (''Penguin On DISC'')_iso / Dev.CD Apr 93.iso / Utilities / MPW Interfaces 7.1 Beta / CIncludes / TSMTE.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-08-28  |  928 b   |  44 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TSMTE.h
  3.  
  4.     Contains:    Definitions for TSMTE
  5.  
  6.     Written by:    Kida Yasuo, Hara Keisuke
  7.  
  8.     Copyright:    ©1991, 1992 Apple Operations and Technologies Japan, Inc.
  9.                 All rights reserved.
  10.  
  11. */
  12.  
  13. #ifndef    __TSMTE__
  14. #define    __TSMTE__
  15.  
  16. #ifndef    __TEXTEDIT__
  17. #include <TextEdit.h>
  18. #endif
  19.  
  20. #ifndef    __TEXTSERVICES__
  21. #include "TextServices.h"
  22. #endif
  23.  
  24.  
  25. typedef pascal void ( *TSMUpdateProcPtr)( TEHandle textH, long fixLen,
  26.                                           long inputAreaStart, long inputAreaEnd,
  27.                                           long pinStart, long pinEnd, long refCon );
  28.  
  29. typedef struct {
  30.     TEHandle                textH;            //    TEHandle
  31.     TSMUpdateProcPtr        updateProc;        //    if not nil, TSMTE call this proc
  32.     long                    updateFlag;        //    flags described below
  33.     long                    refCon;            //    reference constant for application use
  34. } TSMTERec, *TSMTERecPtr, **TSMTERecHandle;
  35.  
  36. enum {
  37.     kTSMTEAutoScroll    = 1                    //    auto scroll on
  38. };
  39.  
  40. #define kTSMTEInterfaceType            'tmTE'
  41. #define kTSMTESignature                'tmTE'
  42.  
  43. #endif
  44.